package com.my.ddd_sample_collections.association_object.domain;

/**
 * 读者用户
 */
public class User {

    private MySubscriptions mySubscriptions;
    private long id;


    // 获取用户订阅的所有专栏
    public MySubscriptions getMySubscriptions() {
        return mySubscriptions;
    }

    public void setMySubscriptions(MySubscriptions mySubscription) {
        this.mySubscriptions = mySubscription;
    }

    // 计算所订阅的专栏的总价
    public double getTotalSubscriptionFee() {
        return mySubscriptions.getTotalSubscriptionFee();
    }

    public long getId() {
        return id;
    }
}


